<?php
/*
 * 全局函数
 * @arrange Mark
 * @package ixdcw
 * @file    global.func.php
 * @time    12-12-19 下午1:01
 */
defined('IN_IXDCW') or exit('Access Denied');
require_once DT_CORE.'/member/global.func.php';

/**
 * @param $total    总的页数 
 * @param $pagesize 每页数目
 * @param $demo_url url
 * @param int $page 分页数
 * @return string   返回分页的html代码
 */
function home_pages($total, $pagesize, $demo_url, $page = 1) {
	global $MOD, $L;
	$pages = '';
	$items = $total;
	$total = ceil($total/$pagesize);
	$page = intval($page);
	$home_url = str_replace('{destoon_page}', '1', str_replace(array('%7B', '%7D'), array('{', '}'), $demo_url));
	include DT_ROOT.'/api/pages.sample.php';
	return $pages;
}
?>